Skip to contentSkip to conversation

aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]

PATCH In review chenheyun 2 participants 8 messages Mar 24, 2024 – Mar 27, 2024

lore
Share & tools
lore

chenheyun

author
#0 lore raw

PATCH 1/1 aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]

aer-inject allows to inject PCIE AER errors on the software level into a running Linux kernel. This is intended for validation of the PCIE driver error recovery handler and CIE AER core handler.

References:
https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/

---
 .../aer-inject/aer-inject_1.0.bb              | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb new file +25 -0
new file mode 100644
index 000000000..4b1b5e093
@@ -0,0 +1,25 @@
+SUMMARY = "Inject PCIE AER errors on the software level into a running Linux kernel."
+DESCRIPTION = "\
+aer-inject allows to inject PCIE AER errors on the software \
+level into a running Linux kernel. This is intended for \
+validation of the PCIE driver error recovery handler and \
+PCIE AER core handler."
+HOMEPAGE = "https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/"
+SECTION = "pcie/misc"
+LICENSE = "GPL-2.0"
+
+LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6"
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;branch=master \
+"
+SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "bison-native"
+
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
+}
+FILES:${PN} += "/usr/local/aer-inject"
+BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
Signature · 1 line
2.25.1
#1 lore raw
Quoted 23 lines · chenheyun

aer-inject allows to inject PCIE AER errors on the software level into a running Linux kernel. This is intended for validation of the PCIE driver error recovery handler and CIE AER core handler.

References:
https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/

---
 .../aer-inject/aer-inject_1.0.bb              | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb new file +3 -0
new file mode 100644
index 000000000..4b1b5e093
@@ -0,0 +1,25 @@
+SUMMARY = "Inject PCIE AER errors on the software level into a running Linux kernel."
+DESCRIPTION = "\
+aer-inject allows to inject PCIE AER errors on the software \

meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb line 13

Quoted 10 lines
meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb new file +10 -0
+level into a running Linux kernel. This is intended for \
+validation of the PCIE driver error recovery handler and \
+PCIE AER core handler."
+HOMEPAGE = "https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/"
+SECTION = "pcie/misc"
+LICENSE = "GPL-2.0"
+
+LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6"
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;branch=master \

it should need protocol=git as well

meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb line 24

Quoted 11 lines
meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb new file +11 -0
+"
+SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "bison-native"
+
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
+}
+FILES:${PN} += "/usr/local/aer-inject"

can we change do_install to install it into /usr and not /usr/local

Quoted 14 lines
meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb new file +1 -1
+BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109565): https://lists.openembedded.org/g/openembedded-devel/message/109565
Mute This Topic: https://lists.openembedded.org/mt/105119602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
In reply to chenheyun

hi
it is ok to install aer-intall to usr.
like this:
"
do_install() {
echo ${PREFIX}
echo ${D}
oe_runmake 'DESTDIR=${D}' *'PREFIX=/usr/'* install
}
FILES:${PN} += *"/usr/aer-inject* "
"
i reply before this mail. but i dont find history. so i reply newly. thanks for your suggestions very much!

#4 lore raw

there is another issue

WARNING: aer-inject-1.0-r0 do_package_qa: QA Issue: Recipe LICENSE includes obsolete licenses GPL-2.0 [obsolete-license]
WARNING: aer-inject-1.0-r0 do_package_qa: QA Issue: File /usr/.debug/aer-inject in package aer-inject-dbg contains reference to TMPDIR [buildpaths]

Please look into these too.

Quoted 13 lines · chenheyun

hi

    i fix it in 109586;

https://lists.openembedded.org/g/openembedded-devel/message/109586
thanks。
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109587): https://lists.openembedded.org/g/openembedded-devel/message/109587
Mute This Topic: https://lists.openembedded.org/mt/105119602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#5 lore raw

sorry, i run it on older meta-openembedded,so i dont find this WARNING. now, i know it ,thanks.

this is note in README:
"You should find a copy of v2 of the GNU General Public License somewhere on your Linux system; if not, write to the Free Software Foundation,"

then,can i copy  "kernel-source\LICENSES\preferred\GPL-2.0" to files to fix " obsolete licenses GPL-2.0"?

thanks for your suggestions very much!

#6 lore raw
Quoted 10 lines · chenheyun

sorry, i run it on older meta-openembedded,so i dont find this WARNING. now, i know it ,thanks.

this is note in README:
"You should find a copy of v2 of the GNU General Public License
somewhere on your Linux system; if not, write to the Free Software Foundation,"

then,can i copy "kernel-source\LICENSES\preferred\GPL-2.0" to files to fix "obsolete licenses GPL-2.0"?

I think you should change

LICENSE = "GPL-2.0" to
LICENSE = "GPL-2.0-only"

That should fix one problem, for the second problem some object file is encoding paths into it.
so things like __FILE__ macros in code can do so, they must be removed.

Quoted 9 lines

thanks for your suggestions very much!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109622): https://lists.openembedded.org/g/openembedded-devel/message/109622
Mute This Topic: https://lists.openembedded.org/mt/105119602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#7 lore raw

hi
i fix it in 109642.like this:
"
LICENSE = "GPL-2.0-only"
+SECTION = "pcie/misc"
*+LICENSE = "GPL-2.0-only"*
+
+LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6" +
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;protocol=https;branch=master \
+"
+SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "bison-native"
+
*+do_compile() {*
*+    oe_runmake CFLAGS="-Wall -D_GNU_SOURCE"*
*+}*

"
Thanks for the guidance!